/*
 *	media player export functions definition.
 *	author pengl
 *  
 */

#ifndef __MEDIA_PLAYER__H_
#define __MEDIA_PLAYER__H_ 

#ifdef MEDIAPLAYER_EXPORTS
#define MEDIAPLAYER_API __declspec(dllexport)
#else
#define MEDIAPLAYER_API __declspec(dllimport)
#endif


typedef
enum MP_STATE{
	NONE,
	PLAYER_STATE_PLAY,
	PLAYER_STATE_PAUSE,
}MP_STATE;

#ifdef __cplusplus
extern "C" {
#endif


MEDIAPLAYER_API void mp_initial(HWND parent);
MEDIAPLAYER_API void mp_start_player(const char *file_name);
MEDIAPLAYER_API int  mp_get_player_pos(); //in seconds
MEDIAPLAYER_API void mp_forward();
MEDIAPLAYER_API void mp_backward();
MEDIAPLAYER_API void mp_inc_volume();
MEDIAPLAYER_API void mp_dec_volume();
MEDIAPLAYER_API MP_STATE mp_play_or_pause();
MEDIAPLAYER_API void mp_stop();
MEDIAPLAYER_API void mp_release();
MEDIAPLAYER_API float mp_percent_pos();
MEDIAPLAYER_API void mp_seek(int secs);

#ifdef __cplusplus
} 
#endif

#endif //__MEDIA_PLAYER__H_